<?php echo form_open(BASE_URL . '/' . $this -> admin . '/edit_event', array('id' => 'event_nomination_form', 'method' => 'post')); ?>
<!--form starts-->
<div class="form_container">
	<h4>Edit Nomination Form</h4>
	<!--row starts-->
	<div class="success_msg" style="margin-left:15px;">
		<?php
		if (isset($error) && $error != '') {
			echo $error;
		} else if ($this -> session -> userdata('event_success')) {
			echo $this -> session -> userdata('event_success');
			$this -> session -> set_userdata('event_success', '');
		}
		?>
	</div>
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="eventname2">Choose Event <span class="asterisk">*</span></label>
			<select class="form-control white" id="choose_event" name="choose_event1">
				<option value="<?php if(isset($post_value[0]['event_name'])){ echo $post_value[0]['event_name'];} ?>" readonly><?php if(isset($post_value[0]['event_name'])){ echo $post_value[0]['event_name'];} ?></option>
			</select>
			<div class="error" id="err-name"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="eventname2">Form Nomination Status <span class="asterisk">*</span></label>
			<select class="form-control white" id="activation_status" name="activation_status1" required>
				<option selected value="Form is Enabled" <?php if(isset($header_data_nomination[0]->event_application_form_activation) && $header_data_nomination[0]['event_nomination_form_activation'] == 'Form is Enabled') echo 'selected'; ?>>Form is Enabled</option>
				<option value="Form is Disabled" <?php if(isset($header_data_nomination[0]->event_application_form_activation) && $header_data_nomination[0]['event_nomination_form_activation'] == 'Form is Disabled') echo 'selected'; ?>>Form is Disabled</option>
			</select>
			<div class="error" id="err-name"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<!--row starts-->
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="Description2">Form Header <span class="asterisk">*</span></label>
			<textarea class="form-control white" id="form_header1" name="form_header1"><?php if(isset($header_data_nomination[0]['event_nomination_form_header'])){ echo $header_data_nomination[0]['event_nomination_form_header'];} ?></textarea>
			<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('form_header1', {
					"toolbar" : "Basic"
				});
				//]]>
			</script>
			<div class="error" id="err-desc"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<!--row starts-->
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="Description2">Form Footer</label>
			<textarea class="form-control white" id="form_footer1" name="form_footer1"><?php if(isset($header_data_nomination[0]['event_nomination_form_footer'])){ echo $header_data_nomination[0]['event_nomination_form_footer'];} ?></textarea>
			<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('form_footer1', {
					"toolbar" : "Basic"
				});
				//]]>
			</script>
			<div class="error" id="err-cat"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<!--row starts-->
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="Description2">Thankyou Page</label>
			<textarea class="form-control white" id="thanks_page1" name="thanks_page1"><?php if(isset($header_data_nomination[0]['event_nomination_form_thank_you_page'])){ echo $header_data_nomination[0]['event_nomination_form_thank_you_page'];} ?></textarea>
			<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('thanks_page1', {
					"toolbar" : "Basic"
				});
				//]]>
			</script>
			<div class="error" id="err-cat"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<!--row starts-->
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="Description2">Declined Page</label>
			<textarea class="form-control white" id="decline_page1" name="decline_page1"><?php if(isset($header_data_nomination[0]['event_nomination_form_declined_page'])){ echo $header_data_nomination[0]['event_nomination_form_declined_page'];} ?></textarea>
			<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('decline_page1', {
					"toolbar" : "Basic"
				});
				//]]>
			</script>
			<div class="error" id="err-cat"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<?php $this->load->view('admin/manage_event/edit_nominee_particular'); ?>
	<?php $this->load->view('admin/manage_event/edit_nominating_party'); ?>
	<?php $this->load->view('admin/manage_event/edit_disclosure'); ?>
</div>
<!--form closed-->
<div class="space30"></div>
<input type="hidden" name="form_type" value="Nomination" >
<input type="hidden" name="event_id" value="<?php if(isset($header_data_nomination[0]['event_nomination_event_id'])){ echo $header_data_nomination[0]['event_nomination_event_id']; } ?>">
<button type="submit" class="btn btn-primary" id="event_nomination_btn">
	Save & Continue
</button>
<?php echo form_close(); ?>